﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="RegisterOrder.aspx.cs" Inherits="Pages_RegisterOrder" %>
<%@ MasterType VirtualPath="~/Site.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
 <asp:Panel ID="pnRegister" runat="server" ForeColor="red">
        Chú ý: Các ô có dấu (*) là những ô bắt buộc phải điền thông tin.
        <br />
        <br />
        <table border="0" cellpadding="3" cellspacing="3" width="100%">            
            <tr>
                <td colspan="2" style="background-color: #EEE; color: Blue;">
                    Thông tin cá nhân.
                </td>
            </tr>
            <tr>
                <td style="color: Black">
                    Facbook Id:
                </td>
                <td>
                    <asp:TextBox ID="txtFB_Id" Width="200px" runat="server" Enabled="false"/>
                </td>
            </tr>
            <tr>
                <td style="color: Black">
                    Họ tên:
                </td>
                <td>
                    <asp:TextBox ID="txtFullName" Width="200px" runat="server" />
                    (*)
                </td>
            </tr>
            <tr>
                <td style="color: Black">
                    Địa chỉ:
                </td>
                <td>
                    <asp:TextBox ID="txtAddress" TextMode="MultiLine" Width="200px" runat="server" />
                    <span>(*)</span>
                </td>
            </tr>
            <tr>
                <td style="color: Black">
                    Điện thoại:
                </td>
                <td>
                    <asp:TextBox ID="txtPhone" runat="server" Width="200px" onkeypress="return onlyNumbers();" ></asp:TextBox>
                    (*)
                    <asp:RegularExpressionValidator runat="server" ID="valNumbersOnly" ControlToValidate="txtPhone"
                        Display="Dynamic" ErrorMessage="Chỉ được nhập số" ValidationExpression="(^([0-9]*|\d*\d{1}?\d*)$)"
                        ForeColor="Red">
                    </asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td style="color: Black">
                    Email:
                </td>
                <td>
                    <asp:TextBox ID="txtMail" Width="200px" runat="server" />
                    (*)
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtMail"
                        ErrorMessage="Không đúng định dạng Email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>            
            <tr>
                <td style="color: Black;">
                    Captcha:
                </td>
                <td >
                    <asp:TextBox ID="txtCaptcha" Width="200px" runat="server" />
                    (*)
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <div id="Div1" style="margin-left: 40px;" runat="server">
                        <asp:Image ID="captchaImage" runat="server" />
                        <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Styles/Images/refresh.png"
                            OnClick="ImageButton1_Click" ToolTip="Đổi Captcha" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnRegister" Text="&nbsp;Đặt hàng&nbsp;" runat="server" OnClick="btnRegister_Click"
                        Height="25px" class="fb_invite_button"/>
                    <%--<asp:Button ID="btrefresh" Text="&nbsp;Làm mới&nbsp;" runat="server" Height="25px"
                        OnClick="btrefresh_Click" />--%>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="pnRegisterSuccessfull" runat="server">
        Bạn đã đặt hàng thành công. Vui lòng vào check Email để kiểm tra thông tin đặt hàng.
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="footer" Runat="Server">
</asp:Content>

